﻿@model SchoolCommunicationSystem.Models.ChangeClassModel
@{
    ViewBag.Title = "Lên Lớp";
}

<div id="page-heading">
    <h1>Quản lý lớp học</h1>
</div>
<div class="container">
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h4>Quản lý lên lớp</h4>
                </div>
                <div class="panel-body">
                    @using (Html.BeginForm("ChangeClassesSY", "SchoolYears", FormMethod.Post, new { @class = "form-horizontal" }))
                    {
                        @Html.ValidationSummary(true)
                        @Html.HiddenFor(m=>m.schoolYearsID)
                        @Html.HiddenFor(m=>m.oldSchoolYearsID)
                        <div class="form-group">
                            <div class="col-sm-3"></div>
                            <div class="col-sm-2">
                        @Html.Label("Năm học " + Model.oldSchoolYearsName, new { @style = " font-weight:700;" })
                                </div>
                                <div class="col-sm-1" style="align-content:center;align-items:center;text-align:center;">
                            <i class="fa fa-arrow-right" style="text-align:center;"></i> 
                                    </div>
                                <div class="col-sm-2">
                        @Html.Label("Năm học "+Model.newSchoolYearsName, new { @style = " font-weight:700;" })
                                    </div>
                            </div>
                        for (int i = 0; i < Model.ClassInNewSchoolYear.Count; i++)
                        {
                        <div class="form-group">
                            @Html.HiddenFor(m => m.ClassInNewSchoolYear[i].classID)
                            <div class="col-sm-3"></div>
                            <div class="col-sm-2">
                                @Html.TextBoxFor(m => m.ClassInNewSchoolYear[i].className, new { @readonly = "readonly" })
                            </div>
                            <div class="col-sm-1" style="align-content:center;align-items:center;text-align:center;">
                            <i class="fa fa-arrow-right"></i> 
                                </div>
                            <div class="col-sm-2">
                                @Html.TextBoxFor(m => m.ClassInNewSchoolYear[i].NewClassName)
                            </div>
                        </div>
                        }
                           <div class="row">
                            <div class="col-sm-2 col-sm-offset-3">
                                <div class="btn-toolbar">
                                    <button class="btn-primary btn" type="submit">Chuyển Lớp</button>
                                </div>
                            </div>
                        </div>
                    }

                </div>
            </div>
        </div>
    </div>
</div>
